%% 检查车辆是否超出地图边界
function outRange = VehicleRangeCheck(pVec,Configure,Vehicle) %#ok<*INUSD>
    % 地图范围
    minx = Configure.MINX;
    maxx = Configure.MAXX;
    miny = Configure.MINY;
    maxy = Configure.MAXY;

    % 车辆位置
    x = pVec(1);
    y = pVec(2);

    % 检查是否超出范围
    if x < minx || x > maxx || y < miny || y > maxy
        outRange = true;
    else
        outRange = false;
    end
end